package jlfm.lastfm.playlist;

import jlfm.lastfm.client.TrackMetadata;

public class PlaylistEntry implements TrackMetadata {

	private LastFmRadioPlaylist playlist = null;

	private String album;

	private String albumCoverUrl;

	private String albumUrl;

	private String artist;

	private String artistUrl;

	private long metadataTime;

	private String track;

	private int trackDuration;

	private int trackProgress;

	private String trackUrl;

	private String streamUrl;

	public String getAlbumCoverUrl() {
		return albumCoverUrl;
	}

	public void setAlbumCoverUrl(String albumCoverUrl) {
		this.albumCoverUrl = albumCoverUrl;
	}

	public String getAlbumUrl() {
		return albumUrl;
	}

	public void setAlbumUrl(String albumUrl) {
		this.albumUrl = albumUrl;
	}

	public String getArtistUrl() {
		return artistUrl;
	}

	public void setArtistUrl(String artistUrl) {
		this.artistUrl = artistUrl;
	}

	public String getTrackUrl() {
		return trackUrl;
	}

	public void setTrackUrl(String trackUrl) {
		this.trackUrl = trackUrl;
	}

	public String getStreamUrl() {
		return streamUrl;
	}

	public void setStreamUrl(String streamUrl) {
		this.streamUrl = streamUrl;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public void setMetadataTime(long metadataTime) {
		this.metadataTime = metadataTime;
	}

	public void setTrack(String track) {
		this.track = track;
	}

	public void setTrackDuration(int trackDuration) {
		this.trackDuration = trackDuration;
	}

	public void setTrackProgress(int trackProgress) {
		this.trackProgress = trackProgress;
	}

	public String getAlbum() {
		return album;
	}

	public String getAlbumCoverURL() {
		return albumCoverUrl;
	}

	public String getAlbumURL() {
		return albumUrl;
	}

	public String getArtist() {
		return artist;
	}

	public String getArtistURL() {
		return artistUrl;
	}

	public long getMetadataTime() {
		return metadataTime;
	}

	public String getStationName() {
		if (playlist != null) {
			return playlist.getTitle();
		} else {
			return null;
		}
	}

	public String getTrack() {
		return track;
	}

	public int getTrackDuration() {
		return trackDuration;
	}

	public int getTrackProgress() {
		return trackProgress;
	}

	public String getTrackURL() {
		return trackUrl;
	}

	protected LastFmRadioPlaylist getPlaylist() {
		return playlist;
	}

	protected void setPlaylist(LastFmRadioPlaylist playlist) {
		this.playlist = playlist;
	}

}
